import request from '@/utils/request';

export async function getProcessInspectionItemRelationByPage (params: any) {
    return request('/api/quality/getProcessInspectionItemRelationByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addProcessInspectionItemRelation (params: any) {
    return request('/api/quality/addProcessInspectionItemRelation', {
    method: 'POST',
    data: params,
  });
}

export async function updateProcessInspectionItemRelation (params: any) {
    return request('/api/quality/updateProcessInspectionItemRelation', {
    method: 'POST',
    data: params,
  });
}

export async function delProcessInspectionItemRelation (params: any) {
    return request('/api/quality/delProcessInspectionItemRelation', {
    method: 'POST',
    data: params,
  });
}


export async function exportProcessInspectionItemRelation(params: any) {
    return request('/api/quality/exportProcessInspectionItemRelation', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getProcessInspectionItemRelationByPage, addProcessInspectionItemRelation, updateProcessInspectionItemRelation, delProcessInspectionItemRelation, exportProcessInspectionItemRelation }
